package com.attendance.www.hr.dao.mapper;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.attendance.www.hr.beans.ClosedBean;

public interface ClosedExtMapper {

	List<ClosedBean> getClosedPageList(@Param("closedBean") ClosedBean closedBean, @Param("startNum") Integer startNum,
			@Param("pageCount") Integer pageCount);

	Integer getClosedCount(@Param("closedBean") ClosedBean closedBean);

	/**
	 * 查询封账期内休假等申请id的集合
	 * 
	 * @return
	 */
	public List<Integer> getRequestIdByClosed(@Param("approvalState") Integer approvalState,
			@Param("year") Integer year, @Param("month") Integer month, @Param("dayList") List<Date> dayList);

	/**
	 * 查询封账期内补签申请id的集合
	 * 
	 * @param approvalState
	 * @return
	 */
	public List<Integer> getRetroactiveIdByClosed(@Param("approvalState") Integer approvalState,
			@Param("year") Integer year, @Param("month") Integer month, @Param("dayList") List<Date> dayList);

	/**
	 * 查询封账期内有补签审批中的考勤id的集合
	 * 
	 * @param approvalState
	 * @return
	 */
	public List<Integer> getAttendanceIdByClosed(@Param("approvalState") Integer approvalState,
			@Param("year") Integer year, @Param("month") Integer month, @Param("dayList") List<Date> dayList);

}